package com.app.mapper;

import com.app.model.TaskModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TaskMapper extends BaseMapper<TaskModel> {
    List<TaskModel> getList(@Param("departmentId") Integer departmentId);

    IPage<TaskModel> selectTaskList(@Param("p") Page<TaskModel> p, @Param("departmentId") Integer departmentId, @Param("name" )String name, @Param("sortType") Integer sortType);
}
